package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.StockDao;
import com.ericom.model.Stock;
import com.ericom.service.StockManager;

@Service("stockManager")
public class StockManagerImpl extends GenericManagerImpl<Stock, Long> implements
		StockManager {

	private StockDao stockDao;
	@Autowired
	public StockManagerImpl(StockDao stockDao){
		super(stockDao);
		this.stockDao=stockDao;
	}

	@Override
	public List<Stock> findStockByProduct(Long productId) {

		return this.stockDao.findStockByProduct(productId);
	}

}
